<div id="left-740" style="margin: 0 0 20px 20px;">
	<div class="box-h1">
		<h1><?=Kohana::lang('title.orders')?></h1>
		<div class="box1" style="padding:0;">
			<table id="cart-item-list" width="100%" style="margin:0;"><tr>
				<th width="8%"><?=Kohana::lang('site.orderno')?></th>
				<th width="22%"><?=Kohana::lang('site.shipping_name')?></th>
				<th width="30%"><?=Kohana::lang('site.shipping_address')?></th>
				<th width="20%" class="center"><?=Kohana::lang('site.order_status')?></th>
				<th width="20%"></th>
			</tr><?php foreach($orders as $order) { ?><tr>
				<td><?=html::anchor('order/view/'.$order->id, $order->id)?></td>
				<td><?=$order->shipping_firstname.' '.$order->shipping_lastname?></td>
				<td><?=$order->shipping_address_1?></td>
				<td class="center"><?php $status = Kohana::lang('site.a_order_status'); echo $status[$order->status]; ?></td>
				<td class="center">
					<?php if($order->status == 0) {
						echo html::anchor('order/modify/'.$order->id, Kohana::lang('site.modify_order'));
						echo '&#160;&#160;&#160;&#160;';
						echo html::anchor('user/cancelorder/'.$order->id, Kohana::lang('site.cancel'));
					} ?></td>
			</tr><?php } ?>
			</table></form>
			<div style="clear:both"></div>
		</div>
	</div>
</div>
